package com.treeroot.planeservice.plane.service;

import com.treeroot.commonutils.ordervo.PlaneInfoOrder;
import com.treeroot.planeservice.plane.entity.PcPlane;
import com.baomidou.mybatisplus.extension.service.IService;
import com.treeroot.planeservice.plane.entity.vo.queryPlaneVo;


import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author TreeRoot
 * @since 2022-04-20
 */
public interface PcPlaneService extends IService<PcPlane> {
    //得到有无航班信息
    List<PcPlane>  getAllFlight(String flag);


    /**
     *
     * @param planeId
     * @param type  0未支付1已支付
     */
    void myUpdate(String planeId, String type,String planeType);


    Map getPlaneMessage(String type, long current, long limit, queryPlaneVo query);

    PlaneInfoOrder getOrderInfo(String id,String planeType);

    Map getPageList(long current, long limit);

    Map getQueryPageList(long current, long limit, PcPlane plane);

}
